package com.lxyk.service;

import com.lxyk.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @ClassName AccountService
 * @Description TODO
 * @Author FJQ
 * @Date 2022/11/30 15:58
 * @Version 1.0
 **/
@FeignClient(value = "seata-account-service")
public interface AccountService {

    //账户远程调用
    @PostMapping(value = "/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);

}
